<?php
/* Smarty version 4.5.5, created on 2025-05-14 11:11:00
  from 'E:\Develop\php\projects\app\view\admin\basicset\basicset.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.5',
  'unifunc' => 'content_682409c4094e59_41350757',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '6af60e3290386eebb9df20a1e6bc593a8a3721ad' => 
    array (
      0 => 'E:\\Develop\\php\\projects\\app\\view\\admin\\basicset\\basicset.html',
      1 => 1728554182,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_682409c4094e59_41350757 (Smarty_Internal_Template $_smarty_tpl) {
?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta charset="utf-8">
  <title><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['index']['title'];?>
</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/lay/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/lay/layui/index.css" media="all">
</head>
<body>

 <div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-card-body" style="padding: 15px;">
        <div class="layui-form-item" style="text-align: center;"><b><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['mue']['base'];?>
</b></div>
        <form name="addItem" method="post" action="" lay-filter="component-form-group" class="layui-form">
          <input type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['id'];?>
" name="id">

            <div class="layui-form-item">
              <div class="layui-inline">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['table']['status'];?>
</label>
              <div class="layui-input-inline">
               <input type="checkbox" name="site_status" value="1" lay-text="ON|OFF" lay-skin="switch" <?php if ($_smarty_tpl->tpl_vars['datainfo']->value['site_status']) {?>checked<?php }?> />
              </div>
              </div>
              <?php if ($_smarty_tpl->tpl_vars['userinfo']->value == 'superadmin') {?>
              <div class="layui-inline">
                <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['object'];?>
</label>
                <div class="layui-inline">
                   <input type="radio" name="status" value="1" title="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['supperuser'];?>
" <?php if ($_smarty_tpl->tpl_vars['datainfo']->value['status'] == 1) {?> checked<?php }?>  >&nbsp;&nbsp;<input type="radio" name="status" value="2" title="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['user'];?>
" <?php if ($_smarty_tpl->tpl_vars['datainfo']->value['status'] == 2) {?> checked<?php }?>>
                </div>
              </div>
              <?php }?>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['supperuser'];?>
</label>
              <div class="layui-input-inline" style="width:50%;">
                <input type="text" name="site_domain" value="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_domain'];?>
" lay-verify="site_domain" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" autocomplete="off" class="layui-input" />
              </div>
            </div>

            <div class="layui-form-item">
              <div class="layui-inline">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['domain'];?>
</label>
              <div class="layui-input-inline">
               <input type="text" name="site_name" value="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_name'];?>
" lay-verify="site_name" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" autocomplete="off" class="layui-input" />
              </div>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label">LOGO</label>
              <div class="layui-inline">
               <div class="layui-upload">
                  <blockquote class="viewpicList">LOGO：
                  <ul><li class="viewpic" id="picdemo1" <?php if (empty($_smarty_tpl->tpl_vars['datainfo']->value['site_logo'])) {?>style="display:none;"<?php }?>>
                      <img id="demo1" src="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_logo'];?>
" /></li>
                      <button type="button" class="picup" id="test1">+</button>
                  </ul>
                  </blockquote>
                </div>
                 <span>（<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['suggest'];?>
180*50<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['dimensions'];?>
）</span>
                 <input id="imgOne1" name="imgOne1" type="hidden"/>
              </div>
              <div class="layui-inline">
               <div class="layui-upload">
                  <blockquote class="viewpicList">LOGO_ADMIN：
                  <ul><li class="viewpic" id="picdemo2" <?php if (empty($_smarty_tpl->tpl_vars['datainfo']->value['site_logoback'])) {?>style="display:none;"<?php }?>>
                      <img id="demo2" src="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_logoback'];?>
" /></li>
                      <button type="button" class="picup" id="test2">+</button>
                  </ul>
                  </blockquote>
                </div>
                 <span>（<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['suggest'];?>
180*50<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['dimensions'];?>
）</span>
                 <input id="imgOne2" name="imgOne2" type="hidden"/>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['table']['icon'];?>
</label>
              <div class="layui-inline">
               <div class="layui-upload">
                  <blockquote class="viewpicList"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['table']['icon'];?>
：
                  <ul><li class="iconpic" id="picdemo3" <?php if (empty($_smarty_tpl->tpl_vars['datainfo']->value['site_favicon'])) {?>style="display:none;"<?php }?>>
                      <img id="demo3" src="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_favicon'];?>
" /></li>
                      <button type="button" class="iconup" id="test3">+</button>
                  </ul>
                  </blockquote>
                </div>
                 <span>（<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['suggest'];?>
1:1<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['dimensions'];?>
，<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['ico'];?>
）</span>
                 <input id="imgOne3" name="imgOne3" type="hidden"/>
              </div>
            </div>

            <div class="layui-form-item">
              <div class="layui-inline">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['title'];?>
</label>
              <div class="layui-input-inline">
               <input type="text" name="site_title" value="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_title'];?>
" lay-verify="site_title" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" autocomplete="off" class="layui-input" />
              </div>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['table']['keyword'];?>
</label>
              <div class="layui-input-block" style="width:60%;">
               <input type="text" name="site_keywords" value="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_keywords'];?>
" lay-verify="site_keywords" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" autocomplete="off" class="layui-input" />
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['description'];?>
</label>
              <div class="layui-input-block" style="width:60%;">
               <textarea name="site_description" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" class="layui-textarea"><?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_description'];?>
</textarea>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['statis'];?>
</label>
              <div class="layui-input-block" style="width:60%;">
               <textarea name="site_statis" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" class="layui-textarea"><?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_statis'];?>
</textarea>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['bicon'];?>
</label>
              <div class="layui-inline">
               <div class="layui-upload">
                  <blockquote class="viewpicList"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['table']['icon'];?>
：
                  <ul><li class="iconpic" id="picdemo4" <?php if (empty($_smarty_tpl->tpl_vars['datainfo']->value['site_logobottom'])) {?>style="display:none;"<?php }?>>
                      <img id="demo4" src="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_logobottom'];?>
" /></li>
                      <button type="button" class="iconup" id="test4">+</button>
                  </ul>
                  </blockquote>
                </div>
                 <span>（<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['suggest'];?>
1:1<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['dimensions'];?>
）</span>
                 <input id="imgOne4" name="imgOne4" type="hidden"/>
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['table']['phone'];?>
</label>
              <div class="layui-inline" >
              <input type="text" name="site_phone" value="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_phone'];?>
" lay-verify="site_phone" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" autocomplete="off" class="layui-input" />
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['email'];?>
</label>
              <div class="layui-inline" >
              <input type="text" name="site_email" value="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_email'];?>
" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" autocomplete="off" class="layui-input" />
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['table']['addr'];?>
</label>
              <div class="layui-input-block" style="width:60%;">
              <input type="text" name="site_add" value="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_add'];?>
" lay-verify="site_phone" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" autocomplete="off" class="layui-input" />
              </div>
            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['qcode'];?>
</label>
              <div class="layui-inline">
               <div class="layui-upload">
                  <blockquote class="viewpicList">1：
                  <ul><li class="viewpic" id="picdemo5" <?php if (empty($_smarty_tpl->tpl_vars['datainfo']->value['site_ewm'])) {?>style="display:none;"<?php }?>>
                      <img id="demo5" src="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_ewm'];?>
" /></li>
                      <button type="button" class="picup" id="test5">+</button>
                  </ul>
                  </blockquote>
                </div>
                 <span>（<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['suggest'];?>
1:1<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['dimensions'];?>
）</span>
                 <input id="imgOne5" name="imgOne5" type="hidden"/>
              </div>

              <div class="layui-inline">
               <div class="layui-upload">
                  <blockquote class="viewpicList">2：
                  <ul><li class="viewpic" id="picdemo6" <?php if (empty($_smarty_tpl->tpl_vars['datainfo']->value['site_wxewm'])) {?>style="display:none;"<?php }?>>
                      <img id="demo6" src="<?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_wxewm'];?>
" /></li>
                      <button type="button" class="picup" id="test6">+</button>
                  </ul>
                  </blockquote>
                </div>
                 <span>（<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['suggest'];?>
1:1<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['dimensions'];?>
）</span>
                 <input id="imgOne6" name="imgOne6" type="hidden"/>
              </div>

            </div>

            <div class="layui-form-item">
              <label class="layui-form-label"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['copyright'];?>
</label>
              <div class="layui-input-block" style="width:60%;">
               <textarea name="site_copy" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['pinput'];?>
" class="layui-textarea"><?php echo $_smarty_tpl->tpl_vars['datainfo']->value['site_copy'];?>
</textarea>
              </div>
            </div>
                  
          <div class="layui-form-item layui-layout-admin">
            <div>
              <div class="layui-footer" style="left: 0;">
                <button class="layui-btn" type="button" lay-submit lay-filter="*"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['submit'];?>
</button>
                <button type="reset" class="layui-btn layui-btn-primary"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['public']['reset'];?>
</button>
                <button type="button" class="layui-btn layui-btn-primary" onClick="xadmin.close();" ><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['table']['back'];?>
</button>
              </div>
            </div>
          </div>
        </form>
      </div>
    </div>

    </div>

<?php echo '<script'; ?>
 src="/static/lay/layui/layui.js"><?php echo '</script'; ?>
>
  <?php echo '<script'; ?>
 type="text/javascript">
    layui.config({
     base: '/static/lay/' //静态资源所在路径
   }).extend({
     xadmin: 'lib/xadmin' //弹窗
   }).use(['jquery', 'layer','xadmin', 'form'], function(){
    var form = layui.form;
     form.render(null, 'component-form-group');
     /* 自定义验证规则 */
    form.verify({
    });

    form.on('select(brickType)', function(data){
        var g = $(data.elem).find("option:selected").attr("data-grade"); //获取代号
        var ap = $(data.elem).find("option:selected").attr("data-appoint"); //获取代号
        $('#grade').val(g);
        var p = data.value;
        if(p > 0){
        $('#appoint').val(ap);
        $('#appointdiv').hide();
        $("#grade").attr({ readonly: 'true' });
        }else{
        $('#appointdiv').show();
        $("#grade").removeAttr("readonly");
        }
        form.render();
      });

    form.on('submit(*)', function (data) {
                $.post('/admin/basicset/basicsave/',data.field,function(res){
                    if(res.code == 200){
                        layer.msg(res.msg);
                        setTimeout(() => {
                            window.parent.location.reload();
                            xadmin.close();
                        }, 1000);                       
                    }else{
                        layer.msg(res.msg);
                    }
                })
            return false; //阻止表单跳转。如果需要表单跳转，去掉这段即可。
      });

  });
      //上传图片
    layui.use('upload', function(){
        var $ = layui.jquery
            ,upload = layui.upload;
        //图片上传
        var uploadInst = upload.render({
            elem: '#test1'
            ,exts: 'png|jpg|gif|bmp' //只允许上传指定格式文件
            //,url: '/admin/advert/upload/'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                  $('#demo1').attr('src', result); //图片链接（base64）
                  $('#imgOne1').attr('value', result); //图片链接（base64)
                  $('#picdemo1').show();
                });
            }
        });

        //图片上传
        var uploadInst = upload.render({
            elem: '#test2'
            ,exts: 'png|jpg|gif|bmp' //只允许上传指定格式文件 
            //,url: '/admin/advert/upload/'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                  $('#demo2').attr('src', result); //图片链接（base64）
                  $('#imgOne2').attr('value', result); //图片链接（base64)
                  $('#picdemo2').show();
                });
            }
        });

        //图片上传
        var uploadInst = upload.render({
            elem: '#test3'
            ,accept: 'file' //普通文件
            ,exts: 'ico' //只允许上传指定格式文件 
            //,url: '/admin/advert/upload/'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                  $('#demo3').attr('src', result); //图片链接（base64）
                  $('#imgOne3').attr('value', result); //图片链接（base64)
                  $('#picdemo3').show();
                });
            }
        });

        //图片上传
        var uploadInst = upload.render({
            elem: '#test4'
            ,accept: 'file' //普通文件
            ,exts: 'png|jpg|gif|bmp' //只允许上传指定格式文件 
            //,url: '/admin/advert/upload/'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                  $('#demo4').attr('src', result); //图片链接（base64）
                  $('#imgOne4').attr('value', result); //图片链接（base64)
                  $('#picdemo4').show();
                });
            }
        });

        //图片上传
        var uploadInst = upload.render({
            elem: '#test5'
            ,accept: 'file' //普通文件
            ,exts: 'png|jpg|gif|bmp' //只允许上传指定格式文件 
            //,url: '/admin/advert/upload/'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                  $('#demo5').attr('src', result); //图片链接（base64）
                  $('#imgOne5').attr('value', result); //图片链接（base64)
                  $('#picdemo5').show();
                });
            }
        });

        //图片上传
        var uploadInst = upload.render({
            elem: '#test6'
            ,accept: 'file' //普通文件
            ,exts: 'png|jpg|gif|bmp' //只允许上传指定格式文件 
            //,url: '/admin/advert/upload/'
            ,before: function(obj){
                //预读本地文件示例，不支持ie8
                obj.preview(function(index, file, result){
                  $('#demo6').attr('src', result); //图片链接（base64）
                  $('#imgOne6').attr('value', result); //图片链接（base64)
                  $('#picdemo6').show();
                });
            }
        });
   
    });
  <?php echo '</script'; ?>
>
</body>
</html><?php }
}
